<div class="panel panel-default" ng-controller="RtShiftListCtrl">
	<div class="panel-heading">
		城际约租 / 发班计划
	</div>
	<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
	<div class="row wrapper m-n">
		<form class="bs-example form-horizontal ng-pristine ng-valid">
			<div class="form-group col-md-3">
				<div class="col-md-11">
					<input type="text" ng-model="queryMap.shiftNo" class="form-control" placeholder="班次号">
				</div>
			</div>
			<div class="form-group col-md-3" ng-controller="DatepickerDemoCtrl">
				<div class="col-md-11">
					<div class="input-group">
						<input type="text" class="form-control" datepicker-popup="{{format}}" is-open="opened" ng-model="timeRange.startTime" datepicker-options="dateOptions"
							close-text="Close" placeholder="发班日期开始时间" readOnly /> <span class="input-group-btn">
							<button type="button" class="btn btn-default"
								ng-click="open($event)">
								<i class="glyphicon glyphicon-calendar"></i>
							</button>
						</span>
					</div>
				</div>
			</div>
			<div class="form-group col-md-3" ng-controller="DatepickerDemoCtrl">
				<div class="col-md-11">
					<div class="input-group">
						<input type="text" class="form-control" datepicker-popup="{{format}}" is-open="opened" ng-model="timeRange.endTime" datepicker-options="dateOptions"
							close-text="Close" placeholder="发班日期结束时间" readOnly /> <span class="input-group-btn">
							<button type="button" class="btn btn-default"
								ng-click="open($event)">
								<i class="glyphicon glyphicon-calendar"></i>
							</button>
						</span>
					</div>
				</div>
			</div>
			<div class="form-group col-md-3">
				<div class="col-md-11">
					<button type="button" class="btn btn-info" ng-click="query()">查询</button>
				</div>
			</div>
		</form>
	</div>
	<div class="table-responsive">
		<table class="table table-striped b-t b-light">
			<thead>
				<tr>
					<th style="width:10px;"></th>
					<th style="width:70px;">班次号</th>
					<th style="width:70px;">起始城市</th>
					<th style="width:70px;">目的城市</th>
					<th style="width:70px;">发班日期</th>
					<th style="width:70px;">发班时间</th>
					<th style="width:80px;">操作</th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="shift in dataList">
					<td></td>
					<td>{{shift.shiftNo}}</td>
					<td>{{shift.route.city1.name}}</td>
					<td>{{shift.route.city2.name}}</td>
					<td>{{shift.departDay | date : 'yyyy-MM-dd'}}</td>
					<td>{{shift.departTime | date : 'HH:mm:ss'}}</td>
					<td>
						<a href tooltip="修改" has-authority="RENT_SHIFT_UPDATE">
							<i class="fa fa-pencil fa-fw m-r-xs" ng-click="write('lg',shift,'update')"></i>
						</a>
					</td>
				</tr>
				<tr ng-show="dataList.length <= 0">
					<td colspan="7" style="text-align: center;">暂无发班计划信息</td>
				</tr>
			</tbody>
		</table>
	</div>
	<page-footer/>
</div>